package edu.ustb.efws.base.controller.form;

import edu.ustb.efws.base.domain.Detector;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel("修改设备")
public class DetectorUpdateForm extends DetectorSaveForm {
    @NotNull
    @ApiModelProperty(value = "编号", required = true)
    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Detector toDomain() {
        Detector t = super.toDomain();
        t.setId(id);
        return t;
    }
}
